package com.study_security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study_security.entity.ProjectMember;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProjectMemberMapper extends BaseMapper<ProjectMember> {
    int insert(ProjectMember projectMember);
    int deleteByProjectIdAndMemberId(@Param("projectId") Long projectId, @Param("memberId") Long memberId);

    int countByProjectIdMemberId(@Param("projectId") Long projectId,@Param("memberId") Long MemberId);
}
